<!--
 * @Author: your name
 * @Date: 2021-03-04 18:42:31
 * @LastEditTime: 2021-03-26 16:11:12
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \新建文件夹 (3)\project-1806a-training-i\vue-admin\src\views\Shop\add\components\TheOrderEdit.vue
-->
<template>
  <div class="order_edit">
    <el-row :gutter="20">
      <ul>
        <li>
          <el-col :span="16">
            <span>排序：</span>
            <el-input-number
              v-model="sort"
              :min="0"
              label="排序"
            ></el-input-number>
          </el-col>
        </li>
        <li>
          <el-col :span="8">
            <span>积分：</span>
            <el-input-number
              v-model="integral"
              :min="1"
              label="积分"
            ></el-input-number>
          </el-col>
        </li>
        <li>
          <el-col :span="8">
            <span>虚拟销量：</span>
            <el-input-number
              v-model="virtualSales"
              :min="1"
              label="虚拟销量"
            ></el-input-number>
          </el-col>
        </li>
      </ul>
    </el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {
      sort: 0,
      integral: 0,
      virtualSales: 0,
    };
  },
  methods: {
    validate() {
      if (this.sort > 0 && this.integral > 0 && this.virtualSales > 0) {
        return true;
      } else {
        return false;
      }
    },
  },
};
</script>

<style lang="scss">
.order_edit {
  display: flex;
  flex-direction: column;
  ul {
    display: flex;
    justify-content: space-around;
    li {
      display: block;
    }
  }
}
</style>
